//
//@File    :	4.4_instr2.cpp
//@Time    :	2021/08/03 10:49:04
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	reading more than one word with getline
//

#include <iostream>

int main()
{
    using namespace std;
    const int ArSize = 20;
    char name[ArSize];
    char dessert[ArSize];

    cout<<"Enter your name: \n";
    cin.getline(name,ArSize);
    cout<<"Enter your favorite dessert:\n";
    cin.getline(dessert,ArSize);
    cout<<"I have some delicious "<<dessert;
    cout<<" for you, "<<name<<".\n";
    system("pause");
    return 0;
}